What's new in Xcode 11? [Updated for 11.1, 11.2, 11.3, 11.4, 11.5, 11.6 & 11.7] | 您所在的位置:网站首页 › xcode macos 11 › What's new in Xcode 11? [Updated for 11.1, 11.2, 11.3, 11.4, 11.5, 11.6 & 11.7] |
Xcode is the complete developer toolset used to create apps for Apple TV, Apple Watch, iPad, iPhone, and Mac. Xcode 11 includes everything you need to create amazing apps for all Apple platforms. Includes the latest SDKs for macOS 10.15, iOS 13, iPadOS 13, watchOS 6, and tvOS 13. Jump to "What's new in Xcode 11.1?" Jump to "What's new in Xcode 11.2?" Jump to "What's new in Xcode 11.3?" Jump to "What's new in Xcode 11.4?" Jump to "What's new in Xcode 11.5?" Jump to "What's new in Xcode 11.6?" Jump to "What's new in Xcode 11.7?" Supported Configurations Xcode 11 requires a Mac running macOS 10.14.3 or later. Xcode 11 includes SDKs for iOS 13, iPadOS 13, watchOS 6, macOS 10.15, tvOS 13 and Swift 5.1. Xcode 11 supports running multiple concurrent versions of the Xcode app and of any associated tools such as Simulator. Xcode 11 can coexist with previous versions of Xcode. SwiftUIXcode 11 includes SwiftUI, a new Swift framework to provides views, controls, and layout structures for declaring your app's user interface. Xcode 11 provides design tools to make it as easy as drag-and-drop to construct or edit UI, all in the same Swift code file you can also edit by hand.
We can share common UI code across all Apple platforms, and add custom experiences for each OS. So, you can use SwiftUI views with objects from the UIKit, AppKit, and WatchKit frameworks to take further advantage of platform-specific functionality. With SwiftUI, Xcode 11 constantly run real app interface to see the live change directly in the design canvas, or you can instantly run app on an attached device. SwiftUI requires iOS 13, iPadOS 13, watchOS 6, tvOS 13, or macOS 10.15. To use the SwiftUI design canvas Xcode 11 must running on macOS 10.15. You need to Select Use SwiftUI during the project setup to use SwiftUI.
![]() ![]() ![]() You can switch between the light and dark appearance for iOS application directly form the Interface Builder's device bar. Also, Asset catalog makes it easy to control images and colors for dark and light mode.
Xcode 11 Interface Builder supports the new Apple TV tab bar style. Interface builder supports customizing iPad application interfaces for Mac. The NSStackView inspector now allows you to set negative spacing. With Xcode 11, Cells in a UITableView can now self size with Auto Layout constrained views directly into the canvas. To use this feature for existing table views you need to enable Automatic for the table viewestimated item size, and Automatic for cell's height in the Size inspector. Similarly, you can do with the UICollectionView. New Xcode 11 improved the reliability of Auto Layout constraint generation with Add Missing Constraints option. Now you can scroll the UIScrollView directly inside the Interface Builder canvas, once its subviews are fully constrained with Auto Layout constraints. NSSwitch is available when running on macOS 10.15. Source Editor Xcode 11 source editor now natively supports spell checking. (Shortcut - ⌘ + ;) Xcode 11 source editor added a mini map of the file. The mini map includes legible text for //MARK: comments and #pragma mark directives, highlighted lines with errors and warnings, source control changes, breakpoints, and highlighted Find results.![]() ![]() ![]() Download Xcode 11 What's new in Xcode 11.1?Xcode 11.1 includes SDKs for iOS 13.1, macOS Catalina 10.15, watchOS 6, and tvOS 13. Xcode 11.1 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.1 requires a Mac running macOS Mojave 10.14.4 or later. Interface Builder You can now preview your interface for the 7th generation iPad. Fixed a crash that sometimes occurred when compiling XIB files in iOS projects that backwards deploy to iOS versions earlier than 13.0.Download Xcode 11.1 What's new in Xcode 11.2?Xcode 11.2 includes SDKs for iOS 13.2, macOS Catalina 10.15, watchOS 6.1, and tvOS 13.2. Xcode 11.2 beta supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.2 beta requires a Mac running macOS Mojave 10.14.4 or later. Interface Builder Added support for configuring WKInterfaceAuthorizationAppleIDButton styles. Simulator Simulator now has a menu item and keyboard shortcut to bring up the app switcher in iOS simulators. simctl video recording now produces smaller video files, supports HEIC compression, and takes advantage of hardware encoding support where available. Ability to record video on iOS 13, tvOS 13, and watchOS 6 devices has been restored.Download Xcode 11.2 or Xcode 11.2.1 What's new in Xcode 11.3?Xcode 11.3 supports developing apps for iOS 13.3, iPadOS 13.3, tvOS 13.3, watchOS 6.1, and macOS Catalina 10.15.2. Xcode 11.3 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.3 requires a Mac running macOS Mojave 10.14.4 or later. Simulator We can configure the Touch Bar simulator to simulate either 1st generation or 2nd generation Touch Bars.Download Xcode 11.3 or Xcode 11.3.1 What's new in Xcode 11.4?Xcode 11.4 includes SDKs for iOS 13.4, iPadOS 13.4, tvOS 13.4, watchOS 6.2, and macOS Catalina 10.15.4. Xcode 11.4 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.4 requires a Mac running macOS Catalina 10.15.2 or later. Universal Purchase for iOS, iPadOS, tvOS and macOS Apps Xcode 11.4 supports building and distributing macOS apps as a universal purchase. To distribute your macOS app as a universal purchase, specify the same bundle identifier as your iOS app in the Xcode template assistant when creating a new project. If you have an existing project, edit its bundle identifier in the Project Editor. Universal purchase is enabled by default for new Mac Catalyst apps created in Xcode 11.4. When you create a new Mac Catalyst app, it will use the same bundle identifier as your iOS app. Automatic signing in Xcode 11.4 supports building Mac Catalyst apps with a custom bundle identifier. You can edit the bundle identifier of your app using the Signing & Capabilities tab in the Project Editor. If you choose to build your Mac Catalyst app with a custom bundle identifier that does not match your iOS app, you will not be able to distribute the app as a universal purchase. Build SystemBuild settings have a new evaluation operator, default, which you can use to specify the default value of a build setting if it evaluates to nil in the context of the evaluation. For example: $(SETTING:default=something)If $(SETTING) is empty, then this expression evaluates to ‘something’. The default value may itself be an expression containing build setting evaluations. Debugging The view debugger now presents layout guides (UILayoutGuide, NSLayoutGuide) and their referencing constraints. View debugging supports showing layers using the Show Layers menu item in the Editor menu. Interface Builder Added dynamic system gray colors to inspector color pickers. Fixed a bug that prevented entering a 0 constant in the constraint popup editors. SimulatorDragging and dropping an SSL certificate (CER or PEM file) will now install the certificate into the simulated device’s trusted root store. simctl supports a keychain subcommand. This command can add certificates to the trusted root store or the keychain. It can also reset the keychain, deleting all saved items. For example, to install “my-selfsigned.cer” to the trusted root store: xcrun simctl keychain add-root-cert my-selfsigned.cerAdding a certificate to the trusted root store causes TLS/SSL connections to trust the certificate simctl now supports modifying privacy permissions. You can modify privacy permissions to create known states for testing purposes. For example, to allow an example app to access the photo library without any prompts: xcrun simctl privacy grant photos com.example.appTo reset all permissions to defaults, as if the app had never been installed before: xcrun simctl privacy reset all com.example.appAlways test your application after resetting permissions to ensure you have the correct usage description keys in your Info.plist and you are properly requesting and handling different authorization states. See xcrun simctl help privacy for more information. Simulator supports toggling appearance for iOS simulators (13.0 and later). From within the app select Debug > Toggle Appearance. From the command line use the simctl ui subcommand, e.g. to set dark appearance: xcrun simctl ui appearance darkSimulator now has a menu item and keyboard shortcut to bring up the app switcher in iOS Simulators. simctl status_bar now allows changing the operator (carrier) name. Simulator supports simulating remote push notifications, including background content fetch notifications. In Simulator, drag and drop an APNs file onto the target simulator. The file must be a JSON file with a valid Apple Push Notification Service payload, including the "aps" key. It must also contain a top-level "Simulator Target Bundle" with a string value matching the target application‘s bundle identifier. simctl also supports sending simulated push notifications. If the file contains "Simulator Target Bundle" the bundle identifier is not required, otherwise you must provide it as an argument: xcrun simctl push com.example.my-app ExamplePush.apnsSimulator has a new UI that streamlines working with simulated devices. Simulated device windows have a standard title bar, with buttons for common tasks. App-level settings are now available in the Preferences window. Simulator now has a menu item to trigger the guest screenshot feature in iOS simulators. This saves a screenshot to the simulated device’s camera roll. The existing screenshot feature has been renamed “Save Screen” for clarity and continues to save the device‘s framebuffer to your Mac's desktop by default. Hold Option when saving the screen to change the default location. SwiftWe can call values of types that declare func callAsFunction methods like functions. The call syntax is shorthand for applying func callAsFunction methods. struct Adder { var base: Int func callAsFunction(_ x: Int) -> Int { return x + base } } var adder = Adder(base: 3) adder(10) // returns 13, same as adder.callAsFunction(10)You must include func callAsFunction argument labels at call sites. You can add multiple func callAsFunction methods on a single type, and you can mark them as mutating. func callAsFunction works with throws and rethrows, and with trailing closures. Subscripts can now declare default arguments. (59012048) struct Subscriptable { subscript(x: Int, y: Int = 0) { ... } } let s = Subscriptable() print(s[0]) TestingUI testing and recording on macOS support the Fn key modifier. XCTest now supports dynamically skipping tests based on runtime conditions, such as only executing some tests when running on certain device types or when a remote server is accessible. When a test is skipped, Xcode displays it differently in the Test Navigator and Test Report, and highlights the line of code where the skip occurred along with an optional user description. Information about skipped tests is also included in the .xcresult for programmatic access. To skip a test, call one of the new XCTSkip functions from within a test method or setUp(). For example: func test_canAuthenticate() throws { XCTSkipIf(AuthManager.canAccessServer == false, "Can't access server") // Perform test… }The XCTSkipUnless(_:_:file:line:) API is similar to XCTSkipIf(_:_:file:line:) but skips if the provided expression is false instead of true, and the XCTSkip API can be used to skip unconditionally. Download Xcode 11.4.1 What's new in Xcode 11.5?Xcode 11.5 supports developing apps for iOS 13.5, iPadOS 13.5, tvOS 13.5, watchOS 6.2, and macOS Catalina 10.15.4. Xcode 11.5 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.5 requires a Mac running macOS Catalina 10.15.2 or later. There is nothing else new in this version of Xcode. This mostly contains bug fixes. Download Xcode 11.5 What's new in Xcode 11.6?Xcode 11.6 supports developing apps for iOS 13.6, iPadOS 13.6, tvOS 13.6, watchOS 6.2, and macOS Catalina 10.15.4. Xcode 11.6 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.6 requires a Mac running macOS Catalina 10.15.2 or later. There is nothing else new in this version of Xcode. Release note says - There are no release notes for this software update. L0L. Download Xcode 11.6 What's new in Xcode 11.7?Xcode 11.7 supports developing apps for iOS 13.7, iPadOS 13.7, tvOS 13.4, watchOS 6.2, and macOS Catalina 10.15.6. Xcode 11.7 supports on-device debugging for iOS 8 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 11.7 requires a Mac running macOS Catalina 10.15.2 or later. This version of Xcode include New Exposure Notification APIs to provide additional information about potential exposures. Download Xcode 11.7 |
CopyRight 2018-2019 实验室设备网 版权所有 |